package com.guofen.dao;

import com.guofen.pojo.SjqCompostProduceMaintenanceWeek;
import com.guofen.pojo.SjqWaterProductionEquipmentMaintenanceWeek;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqWaterProductionEquipmentMaintenanceWeekMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqWaterProductionEquipmentMaintenanceWeek record);

    int insertSelective(SjqWaterProductionEquipmentMaintenanceWeek record);

    SjqWaterProductionEquipmentMaintenanceWeek selectByPrimaryKey(Integer id);

    SjqWaterProductionEquipmentMaintenanceWeek getlast(Map<String, Object> data);

    List<SjqWaterProductionEquipmentMaintenanceWeek> getlastByName(String equipmentName);

    int updateByPrimaryKeySelective(SjqWaterProductionEquipmentMaintenanceWeek record);

    int updateByPrimaryKey(SjqWaterProductionEquipmentMaintenanceWeek record);

    int selectInThisWeek();

    List<SjqWaterProductionEquipmentMaintenanceWeek> getWeekRecords();

    List<SjqWaterProductionEquipmentMaintenanceWeek> selectAll();

    List<SjqWaterProductionEquipmentMaintenanceWeek> selectByDate(@Param("startDate") String startDate,
                                            @Param("endDate") String endDate);
}